home *** CD-ROM | disk | FTP | other *** search
- Path: news.primenet.com!not-for-mail
- From: gbe@primenet.com (Gary Edstrom)
- Newsgroups: comp.lang.c++
- Subject: Help Wanted: Win95 Visual C++: Getting a Process ID
- Date: 14 Feb 1996 14:41:02 -0700
- Organization: Sequoia Software
- Sender: root@primenet.com
- Message-ID: <3122540a.6354059@news.primenet.com>
- X-Posted-By: ip217.lax.primenet.com
- X-Newsreader: Forte Agent .99d/32.182
-
- I would like to be able to determine if a given process is currently
- running on a Windows 95 system, and if it is, to fetch it's process ID
- (Or ID's if more than a single instance is running). I'm sure it can
- be done, I just haven't been able to find any information on how to do
- it in either the on-line reference or in any of my Windows 95 books.
-
- What I want to do is as follows: We have a program that is currently
- made up of 4 different processes. One of the processes is responsible
- for starting all of the others. Before starting any of the child
- processes, however, I want to check if they are already running on the
- system and if so, to terminate them before performing a new startup.
-
- Can anyone help?
-
- --
- Gary Edstrom <gbe@primenet.com> | Sequoia Software
- PO Box 9573 | Programming & Technical Services
- Glendale CA 91226-0573 | PGP Key ID: 0x1A0D44BD
- PGP Fingerprint: 72 AA 4F 73 05 53 89 C6 8A EE F4 EE D1 C0 13 8D
-